<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
   xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:p="http://primefaces.org/ui" xmlns:pb="http://b2b.pb.com/tags">

<ui:composition template="/template/MainTemplate.xhtml">
   <ui:define name="body">
      <pb:saveBean beanName="productBean" bean="#{productBean}" />

      <h:panelGroup rendered="#{empty productBean.defaultProductLanguages}">
         <div class="error_msg">
            <div class="error_msg_top"> 
               <div class="error_msg_img" />
            </div>
            <div class="error_msg_cont">
               <div class="error_msg_txt">
                  <h:outputText value="#{productBundle.product_list_empty}" />
               </div>
            </div>
            <div class="error_msg_bottom" />
         </div>
      </h:panelGroup>

      <!--p:panel id="treePanel" rendered="{not empty productBean.defaultProductLanguages}"
         header="#{productBundle.create_product_tbl_header}">
         <p:treeTable value="#{productBean.root}" var="categoryLanguage" selection="{productBean.selectedNode}"
            selectionMode="single">

            <p:column style="width:150px" headerText="#{productBundle.lbl_category_name}">
               <h:outputText value="{categoryLanguage.name}" />
            </p:column>

            <p:column style="width:150px" headerText="#{productBundle.lbl_description}">
               <h:outputText value="{categoryLanguage.description}" />
            </p:column>

            <p:column style="width:150px" headerText="#{productBundle.lbl_row}">
               <h:outputText value="{categoryLanguage.category.rowNumber}" />
            </p:column>

            <p:column style="width:150px" headerText="#{productBundle.lbl_status}">
               <h:outputText value="{categoryLanguage.category.status}" />
            </p:column>
         </p:treeTable>
      </p:panel-->


      <h:panelGroup id="buttonsPanel">
         <div class="marginTop7">
            <div class="btnRightCol">
               <p:commandButton action="CreateProductStart?faces-redirect=true"
                  value="#{productBundle.btn_create_product}" ajax="false" styleClass="btn200" />
            </div>
            <h:panelGroup rendered="#{not empty productBean.defaultProductLanguages}">
               <div class="btnRightCol">
                  <p:commandButton action="#{productBean.initChangeProduct}"
                     value="#{productBundle.btn_change_product}" ajax="false" styleClass="btn200" />
               </div>
               <div class="btnRightCol">
                  <p:commandButton action="{productBean.changeRowConfirmAction}"
                     value="#{productBundle.btn_change_product_row}" ajax="false" styleClass="btn200" />
               </div>
            </h:panelGroup>
         </div>
      </h:panelGroup>

   </ui:define>
</ui:composition>
</html>